
#if !SILVERLIGHT
using QdbUnit.Extensions;
using QdbUnit.Extensions.Fixtures;
using Qdb.CS.Internal;
using Qdb.Foundation;

namespace Qdb.Tests.Common.CS
{
	public class ClientServerTestCaseBase : QdbClientServerTestCase, IOptOutAllButNetworkingCS
	{
		protected virtual IServerMessageDispatcher ServerDispatcher()
		{
			ObjectServerImpl serverImpl = Server();
			return (IServerMessageDispatcher)Iterators.Next(serverImpl.IterateDispatchers());
		}

		protected virtual ObjectServerImpl Server()
		{
			return (ObjectServerImpl)ClientServerFixture().Server();
		}

		protected virtual ClientObjectContainer Client()
		{
			return (ClientObjectContainer)Db();
		}
	}
}
#endif // !SILVERLIGHT
